home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11709 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: getting Unix's current running process id
  5. Date: 25 Mar 1996 18:03:27 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4j7c8f$bt5@solutions.solon.com>
  8. References: <UlJ5MNm00YUwM=wGwV@andrew.cmu.edu> <3156E48D.3A23@oc.com>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <3156E48D.3A23@oc.com>, Larry Weiss  <lfw@oc.com> wrote:
  12. >C allows but does not require the existance of a function named getpid() to be
  13. >supplied with your implementation.
  14.  
  15. Actually, as far as I can tell, it's not allowed; or at least, it's not
  16. allowed if it causes problems if/when you define or use your own function
  17. named getpid.
  18.  
  19. If you include <unistd.h>, you are no longer writing C, but are writing
  20. C-with-POSIX-extensions, a language which requires the implementation
  21. to provide a function called getpid().
  22.  
  23. -s
  24. -- 
  25. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  26. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  27. FUCK the communications decency act.  Goddamned government.  [literally.]
  28. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  29.